# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ttf-font-awesome
_pkgname=Font-Awesome
pkgver=5.14.0
pkgrel=0
pkgdesc="Iconic font designed for Bootstrap TTF file only"
url="https://fortawesome.github.io/Font-Awesome/"
arch="noarch"
license="CC"
options="!check"
depends="fontconfig mkfontdir mkfontscale"
makedepends="font-util-dev"
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/FortAwesome/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

package() {
	install -d "$pkgdir/usr/share/fonts/TTF"
	install -d "$pkgdir/usr/share/fonts/X11/OTF"
	install -m644 otfs/*.otf "$pkgdir/usr/share/fonts/X11/OTF/"
	install -m644 webfonts/*.ttf "$pkgdir/usr/share/fonts/TTF/"
}
sha512sums="a46679ae7758a94a4e52e0d24486aa2968d4ffa5fe0a583150847eeedc5703ad9cb47a0c71d074595ef7f44b91dae2b00abbe1c3e648447bfb5366daab99f6e3  ttf-font-awesome-5.14.0.tar.gz"
